<?php include "actions/admin_selector.php";  ?>

<div class="box">
    <!-- Box Head -->
    <div class="box-head">
        <h2>Edit Administrator's Info</h2>
    </div>
    <!-- End Box Head -->

    <form action="actions/admin_editor.php" method="POST">
        <input type="hidden" name="admin_id" value="<?php echo $display['id']?>" />

        <!-- Form -->
        <div class="form">
            <p>
                <label>Name</label>
                <input type="text" class="field size1" name="name" value="<?php echo $display['name']?>"/>
            </p>
            <p>
                <label>Address</label>
                    <input type="text" class="field size1" name="address" value="<?php echo $display['address']?>"/>
                </p>
                <p>
                <label>Desired Username</label>
                    <input type="text" class="field size1" name="username" value="<?php echo $display['username']?>"/>
                </p>
                <p>
                <label>Password</label>
                    <input type="password" class="field size1" name="password"/>
                </p>
                <p>
                <label>E-mail</label>
                    <input type="text" class="field size1" name="email" value="<?php echo $display['email']?>"/>
                </p>
                <p>
                <label>Contact No.</label>
                    <input type="text" class="field size1" name="contact" value="<?php echo $display['contact']?>"/>
                </p>


        </div>
        <!-- End Form -->

        <!-- Form Buttons -->
        <div class="buttons">
            <input type="submit" class="button" value="Update" />
            <a href="admin.php?page=admin_list"> <input type="reset" class="button" value="Cancel" /></a>
        </div>

        <!-- End Form Buttons -->
    </form>
</div>


